from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.


def index(request):
    """

    :param request: 表示HttpRequest类型对象 包含请求报文信息
    :return: response 表示HttpResponse类型对象  包含响应报文信息
    """
    return HttpResponse("hello world")


def templates_demo(request):
    """模板文件"""

    content = {
        "name": "cg"
    }

    return render(request, 'index.html', content)